import request from "./service";
// 登录
export const login = (data) => request({url: '/user/login', method: 'post', data})
// 获取公钥
export const getPublicKey = () => request({url: '/user/public_key', method: 'get'})

// 获取订单列表
export const orderList = (data) => request({url: '/order_pay/query_order_list', method: 'post', data})
// 获取订单详情
export const query_order_info = (data) => request({url: '/order_pay/query_order_info', method: 'post', data})

// 获取设备列表 
export const equipmentList = () => request({url: '/equipment/query_equipment_list', method: 'get'})

// 获取离线设备 
export const query_stop_equipment_list = () => request({url: '/equipment/query_stop_equipment_list', method: 'get'})

// 获取设备组参数
export const query_equipment_params = (data) => request({url: '/equipment/query_equipment_params', method: 'post', data})

// 打开设备门
export const do_equipment_open_door = (data) => request({url: '/equipment/do_equipment_open_door', method: 'post', data})

//  保存参数
export const update_equipment_params = (data) => request({url: '/equipment/update_equipment_params', method: 'post', data})

// 修改个人密码

export const update_oneself_user_password = (data) => request({url: '/user/update_oneself_user_password', method: 'post', data})

// 初始化机柜参数

export const initialization_equipment = (data) => request({url: '/equipment/initialization_equipment',method: 'post',data});


// 获取数据明细
export const query_all_details_data = (data) => request({url: '/finance_data/query_all_details_data',method: 'post',data});

// 场地数据汇总
export const query_summary_data = (data) => request({url: '/finance_data/query_summary_data',method: 'post',data});
